<?php
class Language_model extends CI_Model{
	public function getAll()
	{
		$data = array();
		
		$this->db->from('languages');
		$this->db->where('public','1');
		$this->db->order_by('order');
		$q = $this->db->get();

		if($q -> num_rows())
		{
			$data = $q->result_array();
		}
		$q-> free_result();
		return $data;
	}
}